using System;
using System.Collections.Generic;
using System.Text;

namespace MVCFramework.View
{
    public class MidleSnapPoint : SnapPoint
    {
        BuildingBasicDomain.IGeometry geometryObject;

        public MidleSnapPoint(BuildingBasicDomain.IGeometry _object) { geometryObject = _object ; }

        public override double X
        {
            get
            {
                return geometryObject.GetMiddle().X;
            }
            set
            {
                throw new Exception("The method or operation is not implemented.");
            }
        }

        public override double Y
        {
            get
            {
                return  geometryObject. GetMiddle().Y;
            }
            set
            {
                throw new Exception("The method or operation is not implemented.");
            }
        }

        public override double Z
        {
            get
            {
                return geometryObject.GetMiddle().Z;
            }
            set
            {
                throw new Exception("The method or operation is not implemented.");
            }
        }

        public override double this[int i]
        {
            get
            {
                return geometryObject.GetMiddle()[i];
            }
            set
            {
                throw new Exception("The method or operation is not implemented.");
            }
        }
    }
}
